﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Manage/Views/Shared/Master.Master"
    Inherits="System.Web.Mvc.ViewPage<ProductViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div class="quick">
        <% Html.RenderPartial("StepByStep"); %>
    </div>
    <form method="post" action="<%= Url.Action("Basic") %>">
    <table class="gv">
        <tr>
            <td class="width100 textRight">
                产品名称:
            </td>
            <td>
                <%= Html.TextBox("ProductName", Model.ProductView.ProductName, new { @class="width300" })%>
                <%= Html.Hidden("ProductId", Model.ProductView.ProductId)%>
            </td>
        </tr>
        <tr>
            <td class="textRight">
                副标题
            </td>
            <td>
                <%= Html.TextBox("SubName", Model.ProductView.SubName, new { @class = "width300" })%>
            </td>
        </tr>
        <tr>
            <td class="textRight">
                品牌名称:
            </td>
            <td>
                <%= Html.TextBox("BrandName",Model.ProductView.BrandName) %>
            </td>
        </tr>
        <tr>
            <td class="textRight">
                所属分类
            </td>
            <td>
                <ul class="parentid dropdownlisttree">
                    <%= HtmlExtned.ParentClassify("ClassId", Model.ProductView.ClassId, Model.ClassifyList)%>
                </ul>
            </td>
        </tr>
        <tr>
            <td class="textRight">
                产品型号
            </td>
            <td>
                <%= Html.TextBox("ProductNo", Model.ProductView.ProductNo, new { @class = "width300" })%>
            </td>
        </tr>
        <tr>
            <td class="textRight">
                关键字
            </td>
            <td>
                <%= Html.TextBox("KeyWords", Model.ProductView.KeyWords, new { @class = "width300" })%>
            </td>
        </tr>
        <tr>
            <td class="textRight">
                库存数:
            </td>
            <td>
                <%= Html.TextBox("StockCount", Model.ProductView.StockCount, new { @class="width50"})%>
            </td>
        </tr>
        <tr>
            <td class="textRight">
                有效:
            </td>
            <td>
                <%= Html.CheckBox("IsActive",Model.ProductView.IsActive) %>
            </td>
        </tr>
        <tr>
            <td class="textRight">
                基本描述
            </td>
            <td>
                <%= Html.TextArea("Description", Model.ProductView.Description, new { rows="8", @class="width300" })%>
            </td>
        </tr>
        <tr>
            <td class="textRight">
                保存
            </td>
            <td>
                <input type="submit" value="保存" />
            </td>
        </tr>
    </table>
    </form>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cssLink" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="jsLink" runat="server">
    <script src="<%=Url.Content("~/WebResources/ckeditor/ckeditor.js") %>" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="cssContent" runat="server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="jsContent" runat="server">
    <script type="text/javascript">
        $(function () {
            $(".parentid").dropdownlist();
        });
    </script>
</asp:Content>
